package com.ssy.lingxi.order.model.vo.basic.request;

import com.ssy.lingxi.order.handler.annotation.OrderPayChannelAnnotation;
import com.ssy.lingxi.order.handler.annotation.OrderPayTypeAnnotation;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 新增支付记录接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-24
 */
public class OrderPaymentVO implements Serializable {
    private static final long serialVersionUID = 5770299745614680188L;

    /**
     * 支付次数
     */
    @NotNull(message = "支付次数要大于0")
    @Positive(message = "支付次数要大于0")
    private Integer batchNo;

    /**
     * 支付方式
     */
    @NotNull(message = "支付方式要大于0")
    @OrderPayTypeAnnotation
    private Integer payType;

    /**
     * 支付渠道
     */
    @NotNull(message = "支付渠道要大于0")
    @OrderPayChannelAnnotation
    private Integer payChannel;

    public Integer getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(Integer batchNo) {
        this.batchNo = batchNo;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }
}
